﻿using Coldairarrow.Entity.Backstage.UserData;
using Coldairarrow.Util;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Backstage.UserData
{
    public interface IBS_UserRebateBusiness
    {
        Task<PageResult<GetReabteDto>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<BS_UserRebate> GetTheDataAsync(string id);
        Task AddDataAsync(BS_UserRebate data);
        Task UpdateDataAsync(BS_UserRebate data);
        Task DeleteDataAsync(List<string> ids);
        object GetSumData();
        decimal GetMyCanTransData();
    }

    /// <summary>
    /// 获取收益记录
    /// </summary>
    public class GetReabteDto { 
        public string Id { get; set; }
        public decimal Amount { get; set; }
        public string Purpose { get; set; }
        public int Type { get; set; }
        public DateTime Time { get; set; }

    }
}